﻿using System;

namespace Absky.Util
{
    /// <summary>
    /// web帮助类
    /// </summary>
    public class WebHelper
    {
        #region 获取皮肤主题
        /// <summary>
        /// 获取用户当前UI主题皮肤类
        /// </summary>
        /// <returns></returns>
        public static string GetUITheme()
        {
            string absky_UItheme = CookieHelper.GetCookie("Absky_UItheme");
            return absky_UItheme switch
            {
                "1" => "ab-uitheme-1",
                "2" => "ab-uitheme-2",
                "3" => "ab-uitheme-3",
                "4" => "ab-uitheme-4",
                "5" => "ab-uitheme-5",
                _ => "ab-uitheme-5",
            };
        }
        #endregion
    }
}
